import Mock from 'mockjs'

// 拦截请求，返回假数据
Mock.mock('/hnhsav/ui/v1/myAlarm/fetchAlarmInfoList', {
  code: '0',
  msg: 'success',
  data: {
    list: [
      {
        name: '华连峰1',
        locationName: '船山大道衡阳西湖货运站-东特写',
        time: '2022-11-16 11:39:01',
        similarity: '90.46',
        referencePicUrl: 'https://65.48.135.1/ngx/proxy?i=aHR0cDovLzY1LjQ4LjEzNy4xOTo2MTIwL3BpYz9tYWNobGFrZWNsb3VkL3N0YXRpY19waWN0dXJlL1oxNl82MDAwMDAwMDg4M18xOTZkLzk4NjYvMTYwMzUwMzIzNA==',
        snappedPicUrl: 'https://picx.zhimg.com/80/v2-05c95f5f9d2147caabf2e91bcd96ae80_720w.webp?source=1940ef5c',
        personId: '0715_NSIX6C_S8QEN6N6NNqNCqE',
        type: null,
        alarmType: null,
        libName: '在逃人员库',
        regionName: '长湖派出所长湖派出所长湖派出所',
        level: '一级',
        longitude: '112.5778846',
        latitude: '26.9097755',
        certNo: '430421198705031676'
      },
      {
        name: '华连峰2',
        locationName: '船山大道衡阳西湖货运站-东特写',
        time: '2022-11-16 11:39:01',
        similarity: '90.46',
        referencePicUrl: 'https://65.48.135.1/ngx/proxy?i=aHR0cDovLzY1LjQ4LjEzNy4xOTo2MTIwL3BpYz9tYWNobGFrZWNsb3VkL3N0YXRpY19waWN0dXJlL1oxNl82MDAwMDAwMDg4M18xOTZkLzk4NjYvMTYwMzUwMzIzNA==',
        snappedPicUrl: 'https://picx.zhimg.com/80/v2-05c95f5f9d2147caabf2e91bcd96ae80_720w.webp?source=1940ef5c',
        personId: '0715_NSIX6C_S8QEN6N6NNqNCqE',
        type: null,
        alarmType: null,
        libName: '在逃人员库',
        regionName: '长湖派出所 ',
        level: '二级',
        longitude: '112.5778846',
        latitude: '26.9097755',
        certNo: '430421198705031676'
      }
    ],
    total: null
  }
})

Mock.mock(RegExp('/iland/camera/preview' + '.*'), {
  code: '0',
  msg: 'SUCCESS',
  data: {
    indexCode: 'ea57e4e5ab6841539ab52d7a2adc0db4',
    rtsp: 'cnRzcDovLzEwLjMzLjY1LjExNDo2NTUvRVVybC9yVlQwUVNj',
    url: 'http://123.123.123.123/iland',
    title: '视频预览',
    userId: 'admin',
    priority: 100,
  },
})
Mock.mock(RegExp('/tovods/v1/order/count' + '.*'), (options) => {
  return {
    'code': '0',
    'msg': 'success',
    'data': [
      {
        'orderStartTime': '2023-12-19 05:00:00',
        'orderEndTime': '2023-12-19 05:20:00',
        'count': 0
      },
      {
        'orderStartTime': '2023-12-19 05:20:00',
        'orderEndTime': '2023-12-19 05:40:00',
        'count': 0
      },
      {
        'orderStartTime': '2023-12-19 05:40:00',
        'orderEndTime': '2023-12-19 06:00:00',
        'count': 0
      },
      {
        'orderStartTime': '2023-12-19 06:00:00',
        'orderEndTime': '2023-12-19 06:20:00',
        'count': 0
      },
      {
        'orderStartTime': '2023-12-19 06:20:00',
        'orderEndTime': '2023-12-19 06:40:00',
        'count': 0
      },
      {
        'orderStartTime': '2023-12-19 06:40:00',
        'orderEndTime': '2023-12-19 07:00:00',
        'count': 0
      },
      {
        'orderStartTime': '2023-12-19 07:00:00',
        'orderEndTime': '2023-12-19 07:20:00',
        'count': 1
      },
      {
        'orderStartTime': '2023-12-19 07:20:00',
        'orderEndTime': '2023-12-19 07:40:00',
        'count': 0
      },
      {
        'orderStartTime': '2023-12-19 07:40:00',
        'orderEndTime': '2023-12-19 08:00:00',
        'count': 0
      },
      {
        'orderStartTime': '2023-12-19 08:00:00',
        'orderEndTime': '2023-12-19 08:20:00',
        'count': 3
      },
      {
        'orderStartTime': '2023-12-19 08:20:00',
        'orderEndTime': '2023-12-19 08:40:00',
        'count': 3
      },
      {
        'orderStartTime': '2023-12-19 08:40:00',
        'orderEndTime': '2023-12-19 09:00:00',
        'count': 0
      },
      {
        'orderStartTime': '2023-12-19 09:00:00',
        'orderEndTime': '2023-12-19 09:20:00',
        'count': 1
      },
      {
        'orderStartTime': '2023-12-19 09:20:00',
        'orderEndTime': '2023-12-19 09:40:00',
        'count': 0
      },
      {
        'orderStartTime': '2023-12-19 09:40:00',
        'orderEndTime': '2023-12-19 10:00:00',
        'count': 0
      },
      {
        'orderStartTime': '2023-12-19 10:00:00',
        'orderEndTime': '2023-12-19 10:20:00',
        'count': 0
      },
      {
        'orderStartTime': '2023-12-19 10:20:00',
        'orderEndTime': '2023-12-19 10:40:00',
        'count': 1
      },
      {
        'orderStartTime': '2023-12-19 10:40:00',
        'orderEndTime': '2023-12-19 11:00:00',
        'count': 0
      },
      {
        'orderStartTime': '2023-12-19 11:00:00',
        'orderEndTime': '2023-12-19 11:20:00',
        'count': 0
      },
      {
        'orderStartTime': '2023-12-19 11:20:00',
        'orderEndTime': '2023-12-19 11:40:00',
        'count': 0
      },
      {
        'orderStartTime': '2023-12-19 11:40:00',
        'orderEndTime': '2023-12-19 12:00:00',
        'count': 1
      },
      {
        'orderStartTime': '2023-12-19 12:00:00',
        'orderEndTime': '2023-12-19 12:20:00',
        'count': 1
      },
      {
        'orderStartTime': '2023-12-19 12:20:00',
        'orderEndTime': '2023-12-19 12:40:00',
        'count': 1
      },
      {
        'orderStartTime': '2023-12-19 12:40:00',
        'orderEndTime': '2023-12-19 13:00:00',
        'count': 4
      },
      {
        'orderStartTime': '2023-12-19 13:00:00',
        'orderEndTime': '2023-12-19 13:20:00',
        'count': 1
      },
      {
        'orderStartTime': '2023-12-19 13:20:00',
        'orderEndTime': '2023-12-19 13:40:00',
        'count': 1
      },
      {
        'orderStartTime': '2023-12-19 13:40:00',
        'orderEndTime': '2023-12-19 14:00:00',
        'count': 2
      },
      {
        'orderStartTime': '2023-12-19 14:00:00',
        'orderEndTime': '2023-12-19 14:20:00',
        'count': 1
      },
      {
        'orderStartTime': '2023-12-19 14:20:00',
        'orderEndTime': '2023-12-19 14:40:00',
        'count': 0
      },
      {
        'orderStartTime': '2023-12-19 14:40:00',
        'orderEndTime': '2023-12-19 15:00:00',
        'count': 1
      },
      {
        'orderStartTime': '2023-12-19 15:00:00',
        'orderEndTime': '2023-12-19 15:20:00',
        'count': 0
      },
      {
        'orderStartTime': '2023-12-19 15:20:00',
        'orderEndTime': '2023-12-19 15:40:00',
        'count': 0
      },
      {
        'orderStartTime': '2023-12-19 15:40:00',
        'orderEndTime': '2023-12-19 16:00:00',
        'count': 0
      },
      {
        'orderStartTime': '2023-12-19 16:00:00',
        'orderEndTime': '2023-12-19 16:20:00',
        'count': 1
      },
      {
        'orderStartTime': '2023-12-19 16:20:00',
        'orderEndTime': '2023-12-19 16:40:00',
        'count': 0
      },
      {
        'orderStartTime': '2023-12-19 16:40:00',
        'orderEndTime': '2023-12-19 17:00:00',
        'count': 0
      }
    ]
  }
})
Mock.mock(RegExp('/tovods/v1/alarm/count' + '.*'), (options) => {
  return {
    'code': '0',
    'msg': 'success',
    'data': [
      {
        'alarmStartTime': '2023-12-19 05:00:00',
        'alarmEndTime': '2023-12-19 05:20:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 05:20:00',
        'alarmEndTime': '2023-12-19 05:40:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 05:40:00',
        'alarmEndTime': '2023-12-19 06:00:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 06:00:00',
        'alarmEndTime': '2023-12-19 06:20:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 06:20:00',
        'alarmEndTime': '2023-12-19 06:40:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 06:40:00',
        'alarmEndTime': '2023-12-19 07:00:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 07:00:00',
        'alarmEndTime': '2023-12-19 07:20:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 07:20:00',
        'alarmEndTime': '2023-12-19 07:40:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 07:40:00',
        'alarmEndTime': '2023-12-19 08:00:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 08:00:00',
        'alarmEndTime': '2023-12-19 08:20:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 08:20:00',
        'alarmEndTime': '2023-12-19 08:40:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 08:40:00',
        'alarmEndTime': '2023-12-19 09:00:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 09:00:00',
        'alarmEndTime': '2023-12-19 09:20:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 09:20:00',
        'alarmEndTime': '2023-12-19 09:40:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 09:40:00',
        'alarmEndTime': '2023-12-19 10:00:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 10:00:00',
        'alarmEndTime': '2023-12-19 10:20:00',
        'count': 1
      },
      {
        'alarmStartTime': '2023-12-19 10:20:00',
        'alarmEndTime': '2023-12-19 10:40:00',
        'count': 3
      },
      {
        'alarmStartTime': '2023-12-19 10:40:00',
        'alarmEndTime': '2023-12-19 11:00:00',
        'count': 1
      },
      {
        'alarmStartTime': '2023-12-19 11:00:00',
        'alarmEndTime': '2023-12-19 11:20:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 11:20:00',
        'alarmEndTime': '2023-12-19 11:40:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 11:40:00',
        'alarmEndTime': '2023-12-19 12:00:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 12:00:00',
        'alarmEndTime': '2023-12-19 12:20:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 12:20:00',
        'alarmEndTime': '2023-12-19 12:40:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 12:40:00',
        'alarmEndTime': '2023-12-19 13:00:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 13:00:00',
        'alarmEndTime': '2023-12-19 13:20:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 13:20:00',
        'alarmEndTime': '2023-12-19 13:40:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 13:40:00',
        'alarmEndTime': '2023-12-19 14:00:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 14:00:00',
        'alarmEndTime': '2023-12-19 14:20:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 14:20:00',
        'alarmEndTime': '2023-12-19 14:40:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 14:40:00',
        'alarmEndTime': '2023-12-19 15:00:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 15:00:00',
        'alarmEndTime': '2023-12-19 15:20:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 15:20:00',
        'alarmEndTime': '2023-12-19 15:40:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 15:40:00',
        'alarmEndTime': '2023-12-19 16:00:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 16:00:00',
        'alarmEndTime': '2023-12-19 16:20:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 16:20:00',
        'alarmEndTime': '2023-12-19 16:40:00',
        'count': 0
      },
      {
        'alarmStartTime': '2023-12-19 16:40:00',
        'alarmEndTime': '2023-12-19 17:00:00',
        'count': 0
      }
    ]
  }
})
// Mock.mock(RegExp('' + '.*'), (options) => {})
// Mock.mock(RegExp('' + '.*'), (options) => {})
// Mock.mock(RegExp('' + '.*'), (options) => {})
// Mock.mock(RegExp('' + '.*'), (options) => {})
// Mock.mock(RegExp('' + '.*'), (options) => {})
